home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr44 / xlib06p1.zip / XPAL.H < prev    next >
C/C++ Source or Header  |  1995-03-05  |  2KB  |  81 lines

  1. /*-----------------------------------------------------------------------
  2. ;
  3. ; XPAL - header file
  4. ;
  5. ;
  6. ;
  7. ; ****** XLIB - Mode X graphics library                ****************
  8. ; ******                                               ****************
  9. ; ****** Written By Themie Gouthas                     ****************
  10. ;
  11. ; egg@dstos3.dsto.gov.au
  12. ; teg@bart.dsto.gov.au
  13. ;
  14. ;  Terminology & notes:
  15. ;         VRAM ==   Video RAM
  16. ;         SRAM ==   System RAM
  17. ;         X coordinates are in pixels unless explicitly stated
  18. ;
  19. ;----------------------------------------------------------------------*/
  20.  
  21. #ifndef _XPAL_H_
  22. #define _XPAL_H_
  23.  
  24. #define PAL_ROTATE_DOWN 0
  25. #define PAL_ROTATE_UP   1
  26.  
  27. /* FUNCTIONS =========================================================== */
  28.  
  29.  
  30. void  x_get_pal_raw(       /* Read DAC palette into raw buffer       */
  31.   BYTE  * pal,
  32.   int num_colrs,
  33.   int start_index);
  34.  
  35. void  x_get_pal_struc(     /* Read DAC palette into annotated buffer */
  36.   BYTE  * pal,
  37.   int num_colrs,
  38.   int start_index);
  39.  
  40. void  x_put_pal_raw(       /* Write DAC palette from raw buffer      */
  41.   BYTE  * pal,
  42.   int num_colrs,
  43.   int start_index);
  44.  
  45. void  x_put_pal_struc(     /* Write DAC palette from annotated buffer*/
  46.   BYTE  * pal);
  47.  
  48. void  x_set_rgb(                /* Set the RGB components of a color index*/
  49.   BYTE color,
  50.   BYTE red_c,
  51.   BYTE green_c,
  52.   BYTE blue_c);
  53.  
  54. void  x_rot_pal_raw(           /* Rotate a raw palette buffer             */
  55.   BYTE  * pal,
  56.   int direction,
  57.   int num_colrs);
  58.  
  59. void  x_rot_pal_struc(    /* Rotate an anottated palette buffer      */
  60.   BYTE  * pal,
  61.   int direction);
  62.  
  63. WORD  x_cpcontrast_pal_struc(     /* Copy and contrast adjust annotated  */
  64.   BYTE  *src_pal,  /*  palette buffer                     */
  65.   BYTE  *dest_pal,
  66.   BYTE Intensity);
  67.  
  68. void  x_transpose_pal_struc(  /* Write DAC palette from annotated type*/
  69.   BYTE  * pal, /* buffer with a new offset             */
  70.   int StartColor);
  71.  
  72. void  x_put_contrast_pal_struc( /* Write DAC palette from annotated */
  73.   BYTE  * pal,   /* type buffer with specified intensity  */
  74.   BYTE  intensity);
  75.  
  76.  
  77.  
  78. #endif
  79.  
  80.  
  81.